package com.carp.springframework.bean;

import java.util.Random;

public class UserServiceImpl implements IUserService {

    public String getUserInfo() {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "1, 皮卡丘";
    }

    public String register(String userName) {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "注册用户[" + userName + "]成功";
    }

}
